{% extends "../adminbase.html" %}

{% block content %}
	<H2>Edit Files</H2>

	<div><a href="/editfile">New File</a></div>
	<div>
    {% for File in files %}
      <div>
      <a href="file?filename={{File.filename}}"><b>{{File.filename}}</b></a>
      ({{File.mimetype}}, {{File.authoremail}}, {{File.date}}) 
      <a href="/deletefile?filename={{File.filename}}">delete</a>       
      </div>
    {% endfor %}
	</div>
	{% if needprev %}
	<div><a href="/editfiles?amount={{amount}}&offset={{prevoffset}}">prev</div>
	{% endif %}
	{% if neednext %}
	<div><a href="/editfiles?amount={{amount}}&offset={{nextoffset}}">next</div>
	{% endif %}
{% endblock %}
